package com.aaa.sys.service;

import com.aaa.sys.entity.Role;
import com.aaa.sys.vo.RoleSearch;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author ykq
 * @since 2020-11-25
 */
public interface RoleService extends IService<Role> {

    List<String> queryRolesByUserId(Long userId);

    Page<Role> searchRole(Integer page, Integer limit, RoleSearch dept);

    void saveRolePermission(Long roleId, List<Long> menuIds);

    boolean removeRoleById(Long roleId);

    List<Long> queryRoleIdsByUserId(Long userId);
}
